package com.qfedu.lc.server.controller;

import com.qfedu.lc.common.vo.R;
import com.qfedu.lc.server.entity.SmsLog;
import com.qfedu.lc.server.service.SmsLogService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;

/**
 * 3.短信发送表(SmsLog)表控制层
 *
 * @author makejava
 * @since 2023-10-19 14:19:47
 */
@RestController
@RequestMapping("server/sms")
public class SmsLogController{
    /**
     * 服务对象
     */
    @Resource
    private SmsLogService service;

   @GetMapping("sendrcode")
    public R sendRcode(String phone){
       return service.sendCode(phone);
   }
    @GetMapping("all")
    public R all(){
        return service.all();
    }
}

